<?php
require_once "includes/common.php";
require_once ('includes/header.php');

$id = isset($_GET['id'])?$_GET['id']:0;


// Fetch User from database
$resource = fetchById('users',$id);
$data = mysql_fetch_assoc($resource);
?>
<div class="hero-unit">
  <h4>Users Profile</h4>          
</div>

<div class="row-fluid">
  <table class="table table-condensed">

    <tbody>
      <tr>
         <td>Name :</td>
         <td><?=$data['uname']?></td>
      </tr>
      <tr>
         <td>Email :</td>
         <td><?=$data['email']?></td>
      </tr>
      <tr>
         <td>Date Of Birth :</td>
         <td><?=$data['dob']?></td>
      </tr>         
      <tr>
         <td>Address :</td>
         <td><?=$data['address']?></td>
      </tr>               
      <tr>
         <td>Country :</td>
         <td><?=$data['country']?></td>
      </tr>                     
      <tr>
         <td>Gender :</td>
         <td><?=getGender($data['gender'])?></td>
      </tr>      
      <tr>
         <td>Language :</td>
         <td><?=$data['lang']?></td>
      </tr>
      <tr>
         <td>Hobbies :</td>
         <td><?=$data['hobbies']?></td>
      </tr>                  
      <tr>
         <td>Avatar :</td>
         <td><img src="uploads/thumbs/<?=$data['avatar']?>"
           alt="<?=$data['avatar']?>"
          title="Users Image"></td>
      </tr>                     
      <tr>
         <td>Status :</td>
         <td><?=getStatus($data['status'])?></td>
      </tr>                      
      <tr>
         <td>Added Date :</td>
         <td><?=$data['register_date']?></td>
      </tr>            
                            
      <tr>
         <td>Modified Date :</td>
         <td><?=$data['modification_date']?></td>
      </tr>            
    </tbody>
  </table>
</div><!--/row-->
<?php
require_once ('includes/footer.php');
?>
